/**
 * Date:2019年9月29日 下午3:16:07
 * Copyright (c) 2019, www.bwbroad.com All Rights Reserved
 */

package com.xue.common.core;

/**
 * Description: 应用异常 <br/>
 * Date:2019年9月29日 下午3:16:07 <br/>
 * 
 * @author xuejianxin
 */
public class AppException extends RuntimeException {
	public static String DEFAULT_EXCPTION_CODE = "-1";
	public static String APP_EXCPTION_CODE = "-2";
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 异常信息
	 */
	private String message;
	/**
	 * 错误码
	 */
	private String code;

	public AppException(String code, String message) {
		this.message = message;
		this.code = code;
	}

	public AppException(String message) {
		this(APP_EXCPTION_CODE, message);
	}

	public String getMessage() {
		return message;
	}

	public String getCode() {
		return code;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
